/**
 * @Author wangfan
 * @Date 2016/9/30 14:08
 */

package cn.ac.big.bigd.api.controller;


import cn.ac.big.bigd.gsa.service.GsaServive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/gsa")
public class GsaController {

    @Autowired
    GsaServive gsaServive;


    @RequestMapping(value = "/lineage", method = RequestMethod.GET)
    public Object lineage(String biosample) {
        return gsaServive.getLineageBySampleWithResult(biosample);


    }




    @RequestMapping(value = "/getDir", method = RequestMethod.GET)
    public Object getDir(String biosample) {
        return gsaServive.getDirBySampleWithResult(biosample);


    }








}
